﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharkOS.Core.Graphiques
{
    class Logo
    {
        Ecran.GestionEcran ecran = new Ecran.GestionEcran();
        public uint[] logoimage = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
                                   0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,
                                   0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0, 0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0, 0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0, 0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0, 0,0,1,1,1,0,0,0,0,0,1,1,1,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,
                                   0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, 0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0, 0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0, 0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0, 0,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,
                                   0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, 0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0, 0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0, 0,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0, 0,0,1,1,1,0,0,0,1,1,1,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,
                                   0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, 0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0, 0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0, 0,0,1,1,1,0,0,0,0,0,1,1,1,0,0,0, 0,0,1,1,1,0,0,1,1,1,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0, 0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,
                                   0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0, 0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0, 0,0,1,1,1,0,0,0,0,0,1,1,1,0,0,0, 0,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0, 0,0,1,1,1,0,1,1,1,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0, 0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,
                                   0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0, 0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0, 0,0,1,1,1,0,0,0,0,0,1,1,1,0,0,0, 0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0, 0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,0, 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
                                   0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0, 0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0, 0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0, 0,0,1,1,1,0,1,1,1,0,0,0,0,0,0,0, 0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0, 0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,
                                   0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0, 0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0, 0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0, 0,0,1,1,1,0,0,1,1,1,0,0,0,0,0,0, 0,0,1,1,1,0,1,1,1,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0, 0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,
                                   0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0, 0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0, 0,0,1,1,1,0,0,0,0,0,1,1,1,0,0,0, 0,0,1,1,1,0,0,0,1,1,1,0,0,0,0,0, 0,0,1,1,1,0,0,1,1,1,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0, 0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,
                                   0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,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0,0,0,0,0,
                                   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};


                   
        public void Dessine(int pixelX, int pixelY)
        {
            uint[] Arr = logoimage;
            int hauteur = 16;
            int largeur = 128;
            int i;
            int t;
            uint x = 0,y = 0;
            int count = 0;
            for (i = 0; i < hauteur; i++)
            {
                for (t = 0; t < largeur; t++, count++)
                {
                    if (Arr[count] == 1)
                    {
                        ecran.SetPixel320x200x8(x+(uint)t+(uint)pixelX,y+(uint)i+(uint)pixelY,0x3);
                    }
                    if (Arr[count] == 0)
                    {
                        ecran.SetPixel320x200x8(x + (uint)t + (uint)pixelX, y + (uint)i + (uint)pixelY,0x0);
                    }
                }
            }
     
        }
    }
}
